Searching for and Replacing Strings
This section describes two Text Utilities routines that you can use to search for and replace strings in larger strings:
- The
ReplaceText
function searches a text string and replaces all instances of a target string with another string.ReplaceText
uses the string-manipulation resource tables and works properly for all script systems, including 2-byte script systems.- The
Munger
function searches text for a specified target string and replaces it with another string. This function operates on a byte-by-byte basis; thus, it does not always work for 2-byte script systems.
Subtopics
- ReplaceText
- Munger